/*
* @Date: 2020/3/24
* @Author: XueChengwu <xuechengwu@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: xuechengwu@erayt.com.
*/

const { app, BrowserWindow } = require('electron');
require('./src/core/menu');

function createWindow() {
  let win = new BrowserWindow({
    width: 800,
    height: 600,
    webPreferences: {
      nodeIntegration: true,
    }
  });
  win.loadURL('http://localhost:3000/');
  win.webContents.openDevTools();
  //win.webContents.executeJavascript('alert(11111)');
  app.mainWin = win;
}
app.whenReady().then(createWindow);
